/* eslint-disable no-unused-vars */
/* eslint-disable import/no-dynamic-require */
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');

const cfg = require(path.join(path.resolve('./'), 'config'));
module.exports = {
  custom: {
    output: {
      publicPath: cfg.PUBLIC_PATH
    },
    resolve: {
      alias: {
        '@': path.resolve(__dirname, './src'),
        src: path.resolve(__dirname, './src'),
      }
    },
    plugins: [
      new ModuleFederationPlugin({ ...cfg.EMP })
    ]
  }
};
